package com.itheima.controller;

import com.itheima.entity.LogQueryParam;
import com.itheima.entity.PageBean;
import com.itheima.entity.Result;
import com.itheima.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description LogController
 * @Author 你的名字拼接或昵称
 * @Date 2025-09-08
 */
@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

    @GetMapping("/page")
    public Result getPage(LogQueryParam logQueryParam){
        PageBean pageBean=logService.getPage(logQueryParam);
        return Result.success(pageBean);
    }
}
